You can download the entire set of notes here, but be warned that the file is large -- 24MB.
Chapter 1: Introduction
1.1 About Python and Other Programming Languages
1.2 Obtaining and Installing Python|
1.3 Using Python
1.4 Editing Programs with Idle
Chapter 2: Simple Python Code
2.1 A First Program
2.2 What Can Go Wrong?
2.3 Variables and Types
2.4 Numeric Types
2.5 Strings
2.6 Input and Output
2.7 Exercises
Chapter 3: Control Structures
3.1 If-statements
3.2 Booleans
3.3 While-loops
3.4 For-loops
3.5 Designing Code With Loops
3.6 Break Statements and Continue Statements
3.7 Loop Patterns
3.8 Exercises
Chapter 4: Functions
4,1 Concepts
4.2 Function Definitions - The Basics
4.3 Parameters and Arguments
4.4 The Calendar Program
4.5 Recursion
4.6 Exercises
Chapter 5: Testing and Debugging
5.1 Testing Your Code
5.2 The Shell Debugger
5.3 Pdb
Chapter 6: Data Structures
6.1 Concepts
6.2 Lists
6.3 Dictionaries
6.4 Tuples
6.5 Sets
6.6 Exercises
Chapter 7: Files
7.1 Concepts
7.2 Writing Files
7.3 Reading Files
7.4 Try-Except Statements
Chapter 8: Objects and Classes
8.1 Concepts
8.2 Examples of Classes
8.3 Special Methods
8.4 Subclasses
8.5 Object-Oriented Design
8.6 Exercises
Chapter 9: Graphics and User Interfaces
9.1 Tk Concepts and Terminology
9.2 Widgets with Values
9.3 Drawing
9.4 Animation
9.5 Events